package v2

import (
	"gin-admin/global"
	"gin-admin/router/v2/system"
)

func LoadV2Routers() {
	routerGroup := global.GA_ROUTER.Group("/api/v2")

	system.RegisterCaptchaRoutes(routerGroup)
	system.RegisterUserRoutes(routerGroup)
	system.RegisterRoleRoutes(routerGroup)
	system.RegisterMenuRoutes(routerGroup)
	system.RegisterUserRoleRoutes(routerGroup)
	system.RegisterRoleMenuRoutes(routerGroup)
}
